Skip to content

Conversation

@heguanhui
Copy link
Contributor

@heguanhui heguanhui commented Jan 9, 2026

What problem does this PR solve?

Currently, the SHOW BACKENDS command can only display information about all backend nodes and cannot filter based on specific backend IDs. When a cluster has a large number of backend nodes, it's difficult for users to quickly locate the status information of specific backends.
This feature solves the following problems:

Operational Efficiency: Administrators can quickly view the status of specific backend nodes without manually searching through all backends
Monitoring Integration: Facilitates monitoring systems to query the status of specific backends
Troubleshooting: When a backend has issues, you can quickly get detailed information about that backend

Problem Summary:

Feature Description
Enhances the SHOW BACKENDS command to support filtering backend nodes by ID, including both single ID and multiple IDs (comma-separated) filtering methods.

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
        测试报告.docx
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@heguanhui heguanhui force-pushed the feature/support-backend-id-condition-for-show-backends branch from b36e4b6 to 0972263 Compare January 9, 2026 10:06
@heguanhui heguanhui force-pushed the feature/support-backend-id-condition-for-show-backends branch from 0972263 to 1207435 Compare January 9, 2026 10:49
@morningman morningman self-assigned this Jan 13, 2026
@heguanhui
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 31006 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 1207435aed45fec1492b9f3c133b769c8e177ee2, data reload: false

------ Round 1 ----------------------------------
q1	17688	4183	4066	4066
q2	2060	366	237	237
q3	10160	1274	686	686
q4	10221	873	309	309
q5	7536	2037	1850	1850
q6	191	175	141	141
q7	899	777	653	653
q8	9267	1357	1138	1138
q9	4850	4682	4513	4513
q10	6694	1776	1375	1375
q11	496	293	286	286
q12	677	731	585	585
q13	17809	3797	3057	3057
q14	306	294	273	273
q15	598	520	503	503
q16	688	671	628	628
q17	628	736	538	538
q18	6744	6590	6278	6278
q19	1121	983	599	599
q20	379	362	246	246
q21	2914	2474	2098	2098
q22	1042	996	947	947
Total cold run time: 102968 ms
Total hot run time: 31006 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4121	4031	4032	4031
q2	305	397	323	323
q3	2100	2590	2214	2214
q4	1308	1721	1291	1291
q5	4057	3980	3977	3977
q6	210	168	125	125
q7	1844	1818	1681	1681
q8	2706	2477	2497	2477
q9	7304	7246	7185	7185
q10	2516	2630	2379	2379
q11	567	469	468	468
q12	733	753	612	612
q13	3606	4137	3448	3448
q14	290	297	278	278
q15	546	511	510	510
q16	671	685	645	645
q17	1189	1357	1393	1357
q18	8075	7975	7776	7776
q19	883	813	884	813
q20	1983	2047	1994	1994
q21	4712	4314	4093	4093
q22	1067	1014	977	977
Total cold run time: 50793 ms
Total hot run time: 48654 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172954 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 1207435aed45fec1492b9f3c133b769c8e177ee2, data reload: false

query5	4380	615	495	495
query6	334	230	218	218
query7	4216	452	260	260
query8	336	248	241	241
query9	8727	2868	2860	2860
query10	534	381	326	326
query11	15071	15229	14821	14821
query12	186	116	116	116
query13	1272	478	386	386
query14	6358	2997	2793	2793
query14_1	2673	2662	2667	2662
query15	203	195	171	171
query16	993	479	471	471
query17	1121	694	600	600
query18	2505	441	336	336
query19	226	222	199	199
query20	121	117	114	114
query21	219	138	116	116
query22	3848	4228	3895	3895
query23	16016	15652	15303	15303
query23_1	15557	15506	15650	15506
query24	7203	1558	1174	1174
query24_1	1178	1170	1184	1170
query25	557	478	424	424
query26	1238	274	155	155
query27	2748	448	272	272
query28	4528	2122	2110	2110
query29	797	551	456	456
query30	313	244	213	213
query31	795	638	544	544
query32	86	75	77	75
query33	537	354	312	312
query34	873	876	522	522
query35	722	768	681	681
query36	876	915	859	859
query37	165	96	80	80
query38	2744	2760	2689	2689
query39	767	739	728	728
query39_1	714	704	706	704
query40	221	133	119	119
query41	66	64	63	63
query42	105	100	100	100
query43	454	428	392	392
query44	1287	735	753	735
query45	185	185	174	174
query46	808	936	565	565
query47	1361	1497	1255	1255
query48	318	316	254	254
query49	614	415	348	348
query50	602	263	209	209
query51	3793	3793	3803	3793
query52	103	112	97	97
query53	286	330	264	264
query54	295	269	268	268
query55	84	77	75	75
query56	348	313	302	302
query57	1031	1048	953	953
query58	270	280	260	260
query59	2165	2198	2012	2012
query60	331	335	315	315
query61	162	194	150	150
query62	406	356	318	318
query63	301	260	261	260
query64	4906	1301	1001	1001
query65	3823	3614	3773	3614
query66	1433	442	313	313
query67	15346	14783	14516	14516
query68	7637	990	702	702
query69	527	357	316	316
query70	1082	965	905	905
query71	363	301	287	287
query72	5696	3264	3575	3264
query73	771	727	310	310
query74	8789	8749	8620	8620
query75	2798	2793	2436	2436
query76	3339	1044	641	641
query77	520	404	303	303
query78	9653	9821	9258	9258
query79	1353	890	586	586
query80	610	637	489	489
query81	516	267	231	231
query82	213	154	117	117
query83	273	256	250	250
query84	262	117	108	108
query85	925	497	463	463
query86	391	299	289	289
query87	2881	2860	2703	2703
query88	3458	2585	2570	2570
query89	384	349	317	317
query90	2171	171	161	161
query91	169	160	144	144
query92	91	75	69	69
query93	1703	898	524	524
query94	577	320	294	294
query95	582	394	317	317
query96	633	503	227	227
query97	2306	2384	2294	2294
query98	221	210	198	198
query99	606	589	484	484
Total cold run time: 253337 ms
Total hot run time: 172954 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 26.67 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 1207435aed45fec1492b9f3c133b769c8e177ee2, data reload: false

query1	0.06	0.05	0.05
query2	0.10	0.05	0.05
query3	0.26	0.08	0.08
query4	1.61	0.12	0.11
query5	0.27	0.25	0.23
query6	1.16	0.66	0.65
query7	0.03	0.02	0.03
query8	0.06	0.03	0.04
query9	0.57	0.50	0.48
query10	0.56	0.55	0.53
query11	0.14	0.10	0.09
query12	0.14	0.11	0.11
query13	0.60	0.58	0.58
query14	0.94	0.94	0.93
query15	0.80	0.78	0.80
query16	0.38	0.39	0.38
query17	1.03	1.01	1.01
query18	0.22	0.22	0.21
query19	1.89	1.80	1.87
query20	0.02	0.02	0.01
query21	15.44	0.27	0.13
query22	5.29	0.05	0.05
query23	15.99	0.29	0.10
query24	1.06	0.25	0.65
query25	0.11	0.06	0.06
query26	0.15	0.14	0.14
query27	0.08	0.05	0.06
query28	4.02	1.08	0.89
query29	12.55	3.96	3.18
query30	0.28	0.14	0.12
query31	2.80	0.65	0.38
query32	3.24	0.55	0.47
query33	2.98	3.02	3.07
query34	16.03	5.06	4.39
query35	4.50	4.45	4.44
query36	0.65	0.53	0.49
query37	0.11	0.07	0.07
query38	0.08	0.04	0.04
query39	0.05	0.03	0.03
query40	0.18	0.15	0.15
query41	0.09	0.04	0.03
query42	0.04	0.04	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.6 s
Total hot run time: 26.67 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 25.00% (3/12) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 25.00% (3/12) 🎉
Increment coverage report
Complete coverage report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants